package work.konbai.basic.wrapper;

import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.SpringUtil;
import work.konbai.basic.entity.Course;
import work.konbai.basic.service.ICourseService;
import work.konbai.basic.vo.CourseVO;


/**
 * @author KonBAI
 * @version 1.0
 * @createDate 2021/01/17 19:33
 */
public class CourseWrapper extends BaseEntityWrapper<Course, CourseVO> {

	private static ICourseService courseService;

	static {
		courseService = SpringUtil.getBean(ICourseService.class);
	}

	public static CourseWrapper build() {
		return new CourseWrapper();
	}

	@Override
	public CourseVO entityVO(Course course) {
		CourseVO courseVO = BeanUtil.copy(course, CourseVO.class);
		return courseVO;
	}
}
